import axios from "axios";
import React, { use, useDebugValue, useState } from "react";
import './index.scss'


// 自定义 Hooks
function useMyHooks(value) {

    // useDebugValue 就是让你在控制台的调试器中可以看到标记
    useDebugValue('myHooksTest')

    return value * 2
}

function App() {

    const [a, setA] = useState('')
    // 
    const count = useMyHooks(100)


    return <div>
        <h1>App = {count} - {a}</h1>
        <button onClick={() => { }}>求点击</button>
    </div>
}


export default App